<include file="Common:header" />
<body>
<table><tr>
<td width="180" valign="top"><include file="Common:adminpanel" /></td>
<td valign="top" >
<div>
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
		<th height="30" colspan="10" align="center">
			<div>[<a href="<{:U('Product/add')}>">添加产品</a>]
				&nbsp;&nbsp;&nbsp;&nbsp;
				[<a href="<{:U('Product/inventorylist')}>">库存盘点</a>] 
			</div>
		</td>
		</th>
		<tr  class="header">
			<td width="80" height="30" align="center">ID</td>
			<td width="80">名称</td>
			<td width="80">成本价</td>
			<td width="80">会员价</td>
			<td width="80">计量单位</td>
			<td width="20%">SKU编码</td>
			<td width="80">库存下限</td>
			<td width="80">库存量</td>
			<td width="80">操作</td>
		</tr>
		<volist name="proskus" id="vo">
		<php>$bg = ( $vo['proinventory'] <= $vo['prolower'] ) ? "style='color:red'" : ''; 
		</php>
		<tr class="row" >
			<td height="30" align="center"><{$vo.id}></td>
			<td><{$vo.title}></td>
			<td><{$vo.cprice}></td>
			<td><{$vo.vprice}></td>
			<td><{$vo.unit}></td>
			<td><{$vo.prosku}></td>
			<td><{$vo.prolower}></td>
			<td <{$bg}>><{$vo.proinventory}></td>
			<td>[<a href="<{:U("inventory?skuid={$vo['skuid']}")}>">盘点</a>]</td>
		</tr>
		</volist>
		<tr class="row">
		<td height="30" colspan="9" align="center"><div><{$page}></div></td>
		</tr>
	</table>
</div>
</td>
</tr>
</table>

</body>
</html>
